﻿using Entity;
using Entity.BaseEntitys;
using Entity.Permissionss;
using Entity.RolePermissionss;
using Entity.UserPermissionss;
using Entity.UserRoles;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace EntityFrameWorkCore
{
    public class DefaultDbContext : BaseDbContext<DefaultDbContext>
    {



        public DefaultDbContext(DbContextOptions<DefaultDbContext> options) : base(options) {}



        #region  Table

        public DbSet<User> User { get; set; }


        public DbSet<Role> Role { get; set; }

        public DbSet<UserRole> UserRole { get; set; }

        public DbSet<UserPermissions> UserPermissions { get; set; }

        public DbSet<RolePermissions> RolePermissions { get; set; }

        public DbSet<Permissions> Permissions { get; set; }

        
        #endregion

    }
 }

